package com.hejr.comtroller;

import com.hejr.service.IIndexService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: hejr
 * @desc:
 * @date: 2019/4/16 16:06
 */
@RestController
@RequestMapping("/index")
@Slf4j
public class IndexController {


    @Autowired
    private IIndexService indexService;


    @RequestMapping("/updateUserInfo")
    public Object findUserInfo(String userId) {
        Integer result = 200;
        indexService.updateUserInfo(userId);
        return "更新用户信息结果：" + result;
    }
}
